/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.imyours.model.department;

import java.util.Set;

import com.imyours.model.user.UserEntity;

/**
 * 
 * @author Administrator
 */
public class DepartmentEntity {
	// id
	private long id;
	// 父部门
	private DepartmentEntity parentDepartment;
	// 名称
	private String name;
	// 描述
	private String desc;
	// 包含用户
	private Set<UserEntity> users;

	/**
	 * @return the id
	 */
	public long getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(long id) {
		this.id = id;
	}

	/**
	 * @return the parentDepartment
	 */
	public DepartmentEntity getParentDepartment() {
		return parentDepartment;
	}

	/**
	 * @param parentDepartment
	 *            the parentDepartment to set
	 */
	public void setParentDepartment(DepartmentEntity parentDepartment) {
		this.parentDepartment = parentDepartment;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the desc
	 */
	public String getDesc() {
		return desc;
	}

	/**
	 * @param desc
	 *            the desc to set
	 */
	public void setDesc(String desc) {
		this.desc = desc;
	}

	public Set<UserEntity> getUsers() {
		return users;
	}

	public void setUsers(Set<UserEntity> users) {
		this.users = users;
	}

}
